package com.wuye.rcgl.controller;

import com.wuye.common.core.domain.AjaxResult;
import com.wuye.rcgl.domain.vo.HomeInfoVo;
import com.wuye.rcgl.service.HomeInfoVoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import static com.wuye.common.core.domain.AjaxResult.success;

/**
 * @ClassName HomeInfoVoController
 * @Author 武鹏程
 * @Date 2024年11月27日 9:10
 * @Version 1.0
 */
@RestController
@RequestMapping("/rcgl/homeinfo")
public class HomeInfoVoController {
    @Autowired
    private HomeInfoVoService homeInfoVoService;
    @GetMapping("/{homeId}")
    public AjaxResult selectByHomeId(@PathVariable("homeId") Long homeId) {
        return success(homeInfoVoService.selectByHomeId(homeId));
    }
}
